Skip to main content

All Questions

2votes
1answer
631views

Generic UnitOfWork

I am trying to create a Repository & UnitOfWork for Data Access Layer. In my current implementation I have to modify my UnitOfWork everytime I create a new repository. I would like to avoid that ...
niklodeon's user avatar
5votes
2answers
5kviews

Repository pattern along with EF and Unit of work

I'm new to this Repository pattern and have seen lot of repository pattern + UoW implementations all over the internet and I'm not able to reach to a conclusion as to which of them is correct . After ...
Codebadger's user avatar
2votes
0answers
1kviews

Entity Framework with two databases (with UoW, Repository and Service Layer)

I have two databases: one for a warehouse, second for the office (The db design is out of the scope of this question). There are MANY cross-database funtions. One of those functions is ...
Marshall's user avatar
2votes
0answers
808views

Domain Driven Design Model for handling images

I have to create model which will handle various types of images in my app. INTRO Plan is to have one Image type which will be universal and then extended with ...
hyperN's user avatar
5votes
1answer
8kviews

Generic repository and generic service

I use the Repository/Service design pattern in my projects. I have doubts whether it is worth using common services BaseEntity: ...
Artem Polishchuk's user avatar
7votes
1answer
1kviews

N-Layered REST API

I am writing a pretty simple REST service in ASP.NET WebAPI with Entity Framework and I decided to use it as an opportunity to learn N-layered enterprise application architecture with some unit/...
PJDev's user avatar
2votes
1answer
126views

Handing multiple workflows cleanly in LOB application

Background I'm about to build a LOB application that resembles an e-commerce solution (without paying and being open to the public). It will be used to receive orders for fulfillment purposes based ...
James Hill's user avatar
0votes
1answer
69views

LINQ to SQL code - in models project or in db project

I currently have two projects. One called Models, a second called TaskEntityModels, a model first ...
Hoppe's user avatar
12votes
2answers
7kviews

Query Builder pattern with use of FluentApi

Recently, I've come up with an idea of building a custom query builder combine with FluentApi. Expected usage: ...
Kien Chu's user avatar
4votes
0answers
311views

Unit of work with Repository pattern

I am trying to work on a WPF application and decided to go for Unit of Work and Repository pattern, along with MVVM. I am using Entity Framework as my ORM. Could ...
Ishan070692's user avatar
2votes
1answer
2kviews

Replacing IUnitOfWork with a Factory Pattern

As a follow-up to this blog post and this question, I wanted to post my idea of replacing the IUnitOfWork with a factory pattern. It seems to me that in the case of this blog post the IUnitOfWork ...
MplsAmigo's user avatar
1vote
1answer
89views

Exposing includes to client over webservice for database queries

I am using a CQRS type patter for querying data in my application. I am currently using entity framework to connect to the database. ...
Nick Williams's user avatar
3votes
1answer
1kviews

WPF Binding to a Repository with Entity-Framework

I have an MVVM WPF application that will make use of a repository and unit-of-work. This is my Entity Framework database-first model: ...
Yoav's user avatar
  • 319
5votes
2answers
6kviews

EF6 Code First unit of work pattern with IoC/DI

I'm trying to implement the unit of work pattern with dependency injection / inversion of control and entity framework version 6.1.1 Code First, in an asp.net-mvc project. ...
Quoter's user avatar
38votes
2answers
3kviews

KISS my... unit of work

I've seen many, many UoW+Repository implementations. Whenever one was built on top of Entity Framework, I'd cringe at the added complexity. Sure the complexity buys you (sometimes) full decoupling ...
Mathieu Guindon's user avatar

153050per page
close